package com.linkface.base;

import android.graphics.Bitmap;

/**
 * Copyright (c) 2017-2018 LINKFACE Corporation. All rights reserved
 */
public class LFGlobalVar {
    public static Bitmap sCardBitmap = null;

    public static void setCardBitmap(Bitmap bitmap) {
        releaseBitmap();

        sCardBitmap = bitmap;
    }

    public static void releaseBitmap() {
        if(sCardBitmap != null && !sCardBitmap.isRecycled()) {
            sCardBitmap.recycle();
            sCardBitmap = null;
        }
    }
}
